package com.levi.listener;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

//@Component
@RabbitListener(queues = "queue2")
public class Consumer2 {

    @RabbitHandler
    public void receive(String message) {
        System.out.println("receive2: "+message);
    }
}
